package com.shop.Service;

import com.github.pagehelper.PageInfo;
import com.shop.pojo.Brand;
import com.shop.pojo.Message;

import java.io.IOException;
import java.util.List;

public interface BrandService {
    public Message<String> addBrand(Brand brand) throws Exception;
    public Message<PageInfo<Brand>> selectAllBrand(String queryInfo, int pageSize, int pageNum) throws IOException;
    public Message<String> deleteBrand(int pid) throws Exception;
    public Message<String> updateBrand(int pid,String pname,String pimgurl) throws IOException;
    public Message<List<Brand>> selectAll() throws IOException;
    public Message<Integer> selectCount() throws Exception;
    public Message<Brand> selectById(int pid) throws Exception;
}
